package com.tuanzi.loan.business.entity.templateConf;

import lombok.Data;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import java.io.Serializable;
import java.util.Date;

@Data
@Entity
@Table(name = "loan_api_model_itembasis")
@EntityListeners(AuditingEntityListener.class)
public class LoanApiModelItembasisEntity implements Serializable {

	private static final long serialVersionUID = 4097008453374260209L;

	@Id
	@Column(name = "id")
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id;

	@Column(name = "type_id")
	private Long typeId;

	@Column(name = "project_id")
	private Long projectId;

	@Column(name = "title")
	private String title;

	@Column(name = "data_key")
	private String dataKey;

	@Column(name = "create_time")
	@CreatedDate
	@Temporal(TemporalType.TIMESTAMP)
	private Date createTime;

	@Column(name = "update_time")
	@LastModifiedDate
	private Date updateTime;

}
